//
// Created by zx208 on 2024/10/18.
//

#include "../../define.h"

#include <stdio.h>
#include <stdlib.h>

#ifndef _DoubleLinkedList_H
#define _DoubleLinkedList_H

typedef int ElemType;

typedef struct DNode {
    ElemType data;
    struct DNode *prior;
    struct DNode *next;
} DNode, *DouLinkList;

DouLinkList Create_H_DL(DouLinkList head, int length);
DouLinkList Create_T_DL(DouLinkList head, int length);
void Insert_DL(DouLinkList L, int pos, ElemType e);
void Delete_DL(DouLinkList L, int pos, ElemType *e);
void Print_DL(DouLinkList L);

#endif //_DoubleLinkedList_H
